package com.mmdccj.yugu.service;

import com.github.pagehelper.PageInfo;
import com.mmdccj.yugu.dto.PostDto;
import com.mmdccj.yugu.entity.Post;

/**
 * @Author: star_
 * @date: 2023-11-30 18:46
 */
public interface PostService {
    void insertPost(Post post);

    PageInfo<PostDto> getPost(int currentPage, int pageSize);

    Integer getCommentCount(String postId, String type);

    boolean like(String userId, String postId);

    PostDto getOne(String postId);

    PageInfo<PostDto> getMyPost(int currentPage, int pageSize, String userId);
}
